package com.qmyx.supply.admin.controller;

import com.kuaidi100.sdk.request.SupplyChainBrandRequest;
import com.ytjj.qmyx.supplychain.common.api.CommonResult;
import com.ytjj.qmyx.supplychain.mapper.entity.YxSupplyChainBrand;
import com.ytjj.qmyx.supplychain.service.SupplyChainBrandService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 供应链商品品牌管理
 */
@Slf4j
@RestController
@RequestMapping("/supplyChainBrand")
public class SupplyChainBrandController {

    @Autowired
    private SupplyChainBrandService supplyChainBrandService;


    /**
     * 查询所有供应链商品品牌
     *
     * @return
     */
    @GetMapping("/all")
    public CommonResult all(@RequestParam(required = false) String chineseName) {
        return supplyChainBrandService.all(chineseName);
    }

}
